package com.cloudkinto.service.orderoutput.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cloudkinto.common.utils.StringsUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2020/6/8
 */
@Data
@ApiModel
public class OrderOutputListRes {
    @ApiModelProperty("id（不展示）")
    private Long id;
    @ApiModelProperty(value = "出库单号", position = 1)
    private String number;
    /**
     * 1 一件代发 2 fba转运
     */
    @ApiModelProperty("订单类型  1 一件代发 2 fba转运    已废弃字段现在 1:一单一件 2：一单多件")
    private Integer orderType;
    private String orderTypeName;
    @ApiModelProperty("发货类型  0 普通 1 次日达")
    private Integer shipmentType;
    private String shipmentTypeName;

    @ApiModelProperty("复核方式 0扫码 1手动")
    private Integer checkType;
    @ApiModelProperty("申请发货日期")
    private String sendDate;

    /**
     * 仓库名称
     */
    @ApiModelProperty("仓库名称")
    private String storageName;

    /**
     * fba仓库名称
     */
    @ApiModelProperty("fba仓库名称")
    private String fbaStorageName;

    /**
     * 顾客自定单号
     */
    @ApiModelProperty("顾客自定单号")
    private String orderNo;

    /**
     * 收货人
     */
    @ApiModelProperty("收货人")
    private String receiverName;

    /**
     * 收货人电话
     */
    @ApiModelProperty("收货人电话")
    private String telPhone;

    /**
     * 地址
     */
    @ApiModelProperty("所属地区")
    private String area;

    /**
     * 备注
     */
    @ApiModelProperty("申请发货日期")
    private String tips;
    private Long pickUpId;
    private Long trackId;

    /**
     * 送达日期
     */
    private String deliveryDate;

    /**
     * 快递公司
     */
    private String trackName;

    /**
     * 追踪号码
     */
    private String trackNumber;

    private String companyCode;


    /**
     * 三遍
     */
    private Double threeSize;

    /**
     * 费用
     */
    private double shipPrice;

    private String status;
    private String commoditySku;

    @ApiModelProperty("po号")
    private String poNumber;

    @ApiModelProperty("体积")
    private String volume;

    private double packageVolume;

    private int packageCount;

    private int productCount;

    private double weight;

    private double packageWeight;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date appointmentStorageTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date appointmentCarTime;

    public String getStatus() {
        return StringsUtil.createI18Message(status);
    }

    public String getShipmentTypeName() {
        return StringsUtil.createI18Message(shipmentTypeName);
    }
}
